<?php
/**
 * The html template file of index method of blog module of ZenTaoPHP.
 *
 * The author disclaims copyright to this source code.  In place of
 * a legal notice, here is a blessing:
 * 
 *  May you do good and not evil.
 *  May you find forgiveness for yourself and forgive others.
 *  May you share freely, never taking more than you give.
 */
?>
<?php include '../../common/view/header.html.php';?>

<div id="sidebar">
<div class="accordion open">
<a href=""  class="accordion-toggle">系统日志<i class="slider_arrow"></i></a>
<div class="accordion-body">
<ul>
<li class="active"><?php echo html::a($this->createLink($menuModule,'sysoptlog'), '操作日志');?></li>
</div>
</div>
</div>
<div id="main" class="alarm_mynews">
    <div class="main_title">系统日志<span class="level_divide">&gt; &gt;</span>操作日志</div>
    <div class="main_body">
        <div id="report_title">
            <span style="float:left;margin-top:4px;">操作时间：</span>
            <input type="text" id="datetime_start" value="<?php if(isset($_GET['datetime_start'])) echo $_GET['datetime_start']; ?>" style="width:100px;float:left;padding:4px;"/><span style="float:left;margin-top:4px;">&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;</span>
            <input type="text" id="datetime_end" value="<?php if(isset($_GET['datetime_end'])) echo $_GET['datetime_end']; ?>" style="width:100px;float:left;padding:4px;"/>
              <div class="right">
                <span id="search_lab">关键字：</span>
                <div id="item_search" style="float:left">
                    <input type="text" name="key_word" id="key_word" class="" value="<?php if(isset($_GET['key_word'])) echo $_GET['key_word']; ?>" style="width:200px;" placeholder="请输入关键词"/>
                    
                    <a href="javascript:void(0);" class="search" onClick="startSearch('sysmanage','sysoptlog','datetime_start','datetime_end','key_word')" title="查找"></a>
                </div>  
                <input type="hidden" id = "__more_select" value="more_select" />
            </div>  
        </div>
        
        <table class="table">
            <thead>
                <tr>
                    <td width="80px">日志ID</td>
                    <td width="180px;">用户名</td>
                    <td>操作描述</td>
                    <td width="250px;">操作时间</td>
                </tr>
            </thead>
            <tbody>
             <?php foreach($oplog_list as $item):?>
              <tr>
                <td><?php echo $item->optlog_id;?></td>
                <td><?php echo $item->username;?></td>
                <td><?php echo $item->details; ?></td>
                <td><?php echo date("Y-m-d H:i:s",$item->opt_time); ?></td>
              </tr>  
              <?php endforeach;?>  
            </tbody>
        </table>    
         <div class="pages">
			  <?php 
                 // echo html::a(inlink('create'), $lang->blog->add, '', "class='btn btn-primary'");
                  $pager->show('right', 'full');
              ?>
         </div>

         </div>
    </div>
<?php include '../../common/view/footer.html.php';?>
